package com.smart.domain;

import java.util.HashMap;

public class ApiResultEntity {
    public static final int SUCCESS = 200;
    public static final int FAIL = 400;
    public static final int NOAUTH = 401;
    //bycj -- 网站未开启某项功能的时候报的错误
    public static final int UNOPENED = 412;
    private int code;
    private HashMap<String, Object> data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public HashMap<String, Object> getData() {
        return data;
    }

    public void setData(HashMap<String, Object> data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "ApiResultEntity{" +
                "code=" + code +
                ", data=" + data +
                '}';
    }
}
